<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Listar.aspx.cs" Inherits="Listar" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="NavigationContent" runat="Server">
<ul id="main-nav" class="clearfix">
                    <li><a href="../Default.aspx">Inicio</a></li>
                    <li><a href="Agregar.aspx">Agregar</a></li>
                    <li>Listar</li>
                    <li id="right-tab"><a href="#">Contacto</a></li>
                </ul>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    &nbsp;<asp:DetailsView ID="DetailsView1" runat="server" AllowPaging="True" AutoGenerateRows="False"
        DataSourceID="SqlDataSource1" Height="50px" Width="125px">
        <Fields>
            <asp:BoundField DataField="Titulo" HeaderText="Titulo" SortExpression="Titulo" />
            <asp:BoundField DataField="id_Editorial" HeaderText="id_Editorial" SortExpression="id_Editorial" />
            <asp:BoundField DataField="ImagenLibro" HeaderText="ImagenLibro" SortExpression="ImagenLibro" />
            <asp:BoundField DataField="UserId" HeaderText="UserId" SortExpression="UserId" />
            <asp:BoundField DataField="id_Autor" HeaderText="id_Autor" SortExpression="id_Autor" />
            <asp:ImageField DataImageUrlField="ImagenLibro">
            </asp:ImageField>
        </Fields>
    </asp:DetailsView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:autoGeneratedConnection %>"
        SelectCommand="SELECT [Titulo], [id_Editorial], [ImagenLibro], [UserId], [id_Autor] FROM [tblLibros] ORDER BY [Fe_Carga]">
    </asp:SqlDataSource>
</asp:Content>

